package com.qiangzhi.pojo.dto;

import com.qiangzhi.annotation.Account;
import com.qiangzhi.annotation.StringField;
import com.qiangzhi.constant.ValidMessageConstant;
import com.qiangzhi.enums.StringFieldType;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserDTO implements Serializable {

    private static final long serialVersionUID = 10001L;

    @Account
    private Long id;

    @StringField(empty = false, type = StringFieldType.IDENTIFY, message = ValidMessageConstant.IDENTIFY_FORMAT_ERROR)
    private String identify;

    @StringField(empty = false, type = StringFieldType.PASSWORD, message = ValidMessageConstant.PASSWORD_FORMAT_ERROR)
    private String password;

}
